<table id="listeSequences">    
    <th>Date(s)</th>
    <?php
        $check = 0;
        foreach ( $this->threads as $myThread )
        {
            ?>
            <th><a class="lienAjax" href="sequences?threadId=<?php echo $myThread['id'];?>&selectedDate=<?php echo $this->selectedDate;?>&selectedType=<?php echo $this->selectedType; ?>&selectedListe=<?php echo $this->selectedListe;?>" target="content"><?php echo $myThread['name'];?></a></th>
            <?php
        }
        
        $i=0;
        foreach ( $this->sequencesParDate as $dates )
        {
            ?>
            <tr <?php if ( $i % 2 == 0 ) echo "class=\"pair\"";else echo "class=\"impair\""?>><td class="alignmiddle"><a class="lienAjax" href="sequences?threadId=<?php echo $this->selectedThread;?>&selectedDate=<?php echo $dates['date'];?>&selectedType=<?php echo $this->selectedType; ?>&selectedListe=<?php echo $this->selectedListe;?>" target="content"><?php echo $dates['date'];?></a></td>
            <?php
            $i++;    
            foreach ( $dates['data'] as $myThread )
            {
                ?>
                <td><table>
                <?php
                $col = 0;                
                foreach ( $myThread['data'] as $mySequence )
                {
                    ?>
                    <tr>
                        <td><?php echo $mySequence['heure'];?></td>
                        <td>
                            <a class="lienAjax" href="sequences/consult?threadId=<?php echo $myThread['id'];?>&selectedThread=<?php echo $this->selectedThread;?>&selectedType=<?php echo $this->selectedType;?>&selectedDate=<?php echo $this->selectedDate;?>&selectedListe=<?php echo $this->selectedListe;?>&file=<?php echo $mySequence['video'];?>" target="visu">
                            <?php echo basename($mySequence['video']);?>
                            </a>                                    
                        </td>
                        <td><?php echo $mySequence['size'];?>(Ko)</td>
                        <?php if ( $this->userAllowed ) { ?>
                            <td>
                                <a class="supprimAjax" title="Supprimer" href="/sequences/delete?selectedThread=<?php echo $this->selectedThread;?>&threadId=<?php echo $myThread['id'];?>&selectedType=<?php echo $this->selectedType; ?>&selectedDate=<?php echo $this->selectedDate;?>&selectedListe=<?php echo $this->selectedListe;?>&file=<?php echo $myVideo;?>" target="content"><img src="imgweb/film_delete.png" /></a>
                            </td>                               
                        <?php } ?>
                        <td>
                            <input type="checkbox" name="checkbox<?php echo $check;?>" value="<?php echo $myVideo;?>"/>
                        </td>                        
                    </tr>
                    <?php
                    $check++;
                    $col++;                                             
                }
                ?>
                </table>
                <?php
            }
        }
    ?>
</table>
<input type="hidden" name="fileCount" value="<?php echo $check?>" />